package com.example.demo.mongodb.repository;

import com.example.demo.entiy.User;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface UserRepository extends MongoRepository<User, Long> {
    User findByName(String name);
    void deleteById(Long id);
}
